<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$head[title]}</title>
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}{$mod}.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="data/config.js"></script>
<script language="JavaScript" src="images/js/jquery.min.js"></script>
<script language="JavaScript" src="images/js/css.js"></script>
<script language="JavaScript" src="images/js/common.js"></script>
<script language="JavaScript" src="images/js/login.js"></script>
<script language="JavaScript" src="images/js/validator.js"></script>
</head>
<body>
<script type="text/javascript">
	window.onload=function(){
	var h = 25;
	parent.document.getElementById('uploads').height = h;
}
var _FileNum = 1;
function _AddInputFile(Field)
{
    _FileNum++;
	var fileTag = "<div id='file_"+_FileNum+"'><input type='file' name='"+Field+"["+_FileNum+"]' size='20' onchange='javascript:_AddInputFile(\""+Field+"\");parenth(1)'> <input type='text' name='"+Field+"_description["+_FileNum+"]' size='20' title='名称'> <input type='button' value='删除' name='Del' onClick='DelInputFile("+_FileNum+");parenth(0);'></div>";
	var fileObj = document.createElement("div");
	fileObj.id = 'file_'+_FileNum;
	fileObj.innerHTML = fileTag;
	document.getElementById("file_div").appendChild(fileObj);
}

function parenth(flag) {
	var h = $('#height').val();
	h = parseInt(h);
	if(flag) {
		h += 20;
	} else {
		h -= 20;
	}
	parent.document.getElementById('uploads').height = h;
	$('#height').val(h);
}
</script>
<table width="100%" cellpadding="0" cellspacing="0"  height="100%">
  <tr>
    <td>
		<table cellpadding="0" cellspacing="0" width="100%">
		<form name="upload" method="post" action="downfiles.php?dosubmit=1" enctype="multipart/form-data">
		<input type="hidden" name="MAX_FILE_SIZE" value="<?=UPLOAD_MAXSIZE?>" />
		<input type="hidden" name="height" id="height" value="25">
		<input type="hidden" name="catid" id="catid" value="{$catid}">
		<tr>
		<td width="400">
		<div id='file_uploaded'>
		<div id="file_div">
			<div id="file_1"><input type="file" name="uploadfile[1]" size="20" onchange="javascript:_AddInputFile('uploadfile');parenth(1);"> <input type="text" name="file_description[1]" size="20" title="名称"> <input type="button" value="删除" name="Del" onClick="DelInputFile(1);parenth(0);"></div>
		</div>
		</div>
		</td>
		<td valign="top">
		<input type="submit" value=" 上传 "  onclick="this.value='正在上传...';"></td></form>
		</td>
		</tr>
		</table>
	</td>
  </tr>

</table>
</body>
</html>